$("#next").click(function () {
    if (!$(this).hasClass("notAllow")) {
        var pageNumber = parseInt($(".thisNum").children("span").text()) + 1;
        // load($(".list"), 1000);
        addData_studentList(0, pageNumber);
    }

});

$("#last").click(function () {
    if (!$(this).hasClass("notAllow")) {
        var pageNumber = parseInt($(".thisNum").children("span").text()) - 1;
        addData_studentList(localStorage['pageSize'], pageNumber);
    }

});

$(".chooseNum").children("select").change(function () {
    addData_studentList(localStorage['pageSize'], $(this).val());
});


var detailBtn = function (data) {
    var id = data.parent().parent().children(":first").text();
    localStorage['studentId'] = id;
    $("#body").load("page/admin/studentDetail");
    localStorage['pageNumber'] = $(".thisNum").children("span").text();
    setTimeout(function () {
        load(".student-detail", 1500);
    }, 200);
};


$("#student_name_keyword").click(function () {
    // load($(".list"), 1000);
    addData_studentList(8, 1, $(this).parent().children("input").val());
});


$("#studentHighSearch").click(function () {
    dialog_show();
    $(".dialog").load("page/admin/studenthighsearch");
    setTimeout(function () {
        addCollege();
        addDorm();
    }, 500);
});

$("#addStudent").click(function () {
    dialog_show();
    $(".dialog").load("page/admin/addStudent");
    setTimeout(function () {
        // addCollege();
        // addDorm();
    }, 500);
})